

import request from '@/router/axios'

const prefix = '/rca/swckstationdailyreportadjust'

export function fetchList(query) {
  return request({
    url: prefix+'/listQuerySwCkStationDailyReport',
    method: 'get',
    params: query
  })
}
/**
 * 预览
 * @param {*} query 
 * @returns 
 */
export function getQuerySwCkStationDailyReport(query) {
  return request({
    url: prefix+'/getQuerySwCkStationDailyReport',
    method: 'get',
    params: query
  })
}
/**
 * 预览log
 * @param {*} query 
 * @returns 
 */
export function getQuerySwCkStationDailyReportAdjustRecordLog(query) {
  return request({
    url: prefix+'/getQuerySwCkStationDailyReportAdjustRecordLog',
    method: 'get',
    params: query
  })
}
export function getTradeDateList(query) {
  return request({
    url: prefix+'/getTradeDateList',
    method: 'get',
    params: query
  })
}
/**
 * 按日期导出
 * @param {*} query 
 * @returns 
 */
export function exportDate(query) {
  return request({
    url: prefix+'/exportDate',
    method: 'get',
    responseType: 'blob',
    params: query
  })
}
/**
 * 按站点导出
 * @param {*} query 
 * @returns 
 */
 export function exportStation(query) {
  return request({
    url: prefix+'/exportStation',
    method: 'get',
    responseType: 'blob',
    params: query
  })
}

/**
 * 按财务导出
 * @param {*} query 
 * @returns 
 */
 export function exportAffairs(query) {
  return request({
    url: prefix+'/exportAffairsDate',
    method: 'get',
    responseType: 'blob',
    params: query
  })
}
/**
 * 导入
 * @param {*} body 
 * @returns 
 */
export function saveBatch(body) {
  return request({
    url: prefix+'/importBatch',
    headers: {"Content-Type": "multipart/form-data"},
    method: 'post',
    data: body
  })
}

/**
 * 多确认
 * @param {*} obj 
 */
 export function confirmMany(obj) {
  return request({
    url: prefix+'/confirmMany',
    method: 'get',
    params: obj
  })
}

/**
 * 一键确认
 * @param {*} obj 
 */
 export function clickConfirm(obj) {
  return request({
    url: prefix+'/clickConfirm',
    method: 'get',
    params: obj
  })
}
